package sort;

/**
 * SortTest
 */
public class SortTest {


    public static void main(String[] args) {

        int[] array = new int[]{2,4,7,1,9,5,4,2,10};

        System.out.println("----------------BubbleSort");
        Sort sort = new BubbleSort();
        sort.sort(array);
        for (int i : array) {
            System.out.println(i);
        }

        array = new int[]{2,4,7,1,9,5,4,2,10};

        System.out.println("----------------BubbleSortOptimization");
        sort = new BubbleSortOptimization();
        sort.sort(array);
        for (int i : array) {
            System.out.println(i);
        }
        array = new int[]{2,4,7,1,9,5,4,2,10};
        System.out.println("----------------SelectionSort");
        sort = new SelectionSort();
        sort.sort(array);
        for (int i : array) {
            System.out.println(i);
        }
        array = new int[]{2,4,7,1,9,5,4,2,10};
        System.out.println("----------------InsertionSort");
        sort = new InsertionSort();
        sort.sort(array);
        for (int i : array) {
            System.out.println(i);
        }

        array = new int[]{2,4,7,1,9,5,4,2,10};
        System.out.println("----------------QuickSort");
        sort = new QuickSort();
        sort.sort(array);
        for (int i : array) {
            System.out.println(i);
        }
    }
}